<script language="javascript">

function AdvancedSearch()
{
	alert('Advanced Search not yet implemented');
}

function Search()
{
	alert('Search not yet implemented');
}

function Home()
{
	document.getElementById('Action').value="";
	document.getElementById('PageForm').submit();
}

function Logon()
{
//	alert('Logon not yet implemented');
	document.getElementById('Action').value="logon";
	document.getElementById('PageForm').submit();
}

function Logoff()
{
//	alert('Logoff not yet implemented');
	document.getElementById('Action').value="logoff";
	document.getElementById('SessionID').value="";
	document.getElementById('User').value="";
	document.getElementById('UserID').value="";
	document.getElementById('PageForm').submit();
}

function MessageClose()
{
	document.getElementById('message').style.display="none";
//	alert('MessageClose not yet implemented');
}

function OnClickChoral()
{
	document.getElementById('Action').value="ShowSectionChoral";
	document.getElementById('PageForm').submit();
}

function OnClickOrgan()
{
	document.getElementById('Action').value="ShowSectionOrgan";
	document.getElementById('PageForm').submit();
}

function OnClickLiturgy()
{
	document.getElementById('Action').value="ShowSectionLiturgy";
	document.getElementById('PageForm').submit();
}

function OnClickProfessional()
{
	document.getElementById('Action').value="ShowSectionProfessional";
	document.getElementById('PageForm').submit();
}

function OnMouseOverChoral(){document.getElementById('ImgChoral').src = "Images/Choral.png";}
function OnMouseOutChoral(){document.getElementById('ImgChoral').src = "Images/ChoralA.png";}

function OnMouseOverOrgan(){document.getElementById('ImgOrgan').src = "Images/Organ.png";}
function OnMouseOutOrgan(){document.getElementById('ImgOrgan').src = "Images/OrganA.png";}

function OnMouseOverLiturgy(){document.getElementById('ImgLiturgy').src = "Images/Liturgy.png";}
function OnMouseOutLiturgy(){document.getElementById('ImgLiturgy').src = "Images/LiturgyA.png";}

function OnMouseOverProfessional(){document.getElementById('ImgProfessional').src = "Images/Professional.png";}
function OnMouseOutProfessional(){document.getElementById('ImgProfessional').src = "Images/ProfessionalA.png";}



/************************************ ShowSection Scripts ***************************/
function ShowChoralCategory(category)
{
//	alert ("ShowChoralCategory("+category+") is not yet implemented");
	document.getElementById('Action').value="ShowChoralCategory";
	document.getElementById('Category').value=category;
	document.getElementById('PageForm').submit();
}

function ShowOrganCategory(category)
{
//	alert ("ShowOrganCategory("+category+") is not yet implemented");
	document.getElementById('Action').value="ShowOrganCategory";
	document.getElementById('Category').value=category;
	document.getElementById('PageForm').submit();
}

function ShowLiturgyCategory(category)
{
//	alert ("ShowLiturgyCategory("+category+") is not yet implemented");
	document.getElementById('Action').value="ShowLiturgyCategory";
	document.getElementById('Category').value=category;
	document.getElementById('PageForm').submit();
}

function ShowProfessionalCategory(category)
{
//	alert ("ShowProfessionalCategory("+category+") is not yet implemented");
	document.getElementById('Action').value="ShowProfessionalCategory";
	document.getElementById('Category').value=category;
	document.getElementById('PageForm').submit();
}

function OnMouseOverBrowse(element){document.getElementById(element).src = "Images/Browse1.png";}
function OnMouseOutBrowse(element){document.getElementById(element).src = "Images/Browse.png";}

/************************************  ShowCategory Scripts *************************/

function OnMouseOverSummary(element){document.getElementById(element).className= "SummaryHover";}
function OnMouseOutSummary(element){document.getElementById(element).className = "Summary";}

function OnClickSummary(ResourceID)
{
	document.getElementById('Action').value="ShowResource";
	document.getElementById('ResourceID').value=ResourceID;
	document.getElementById('PageForm').submit();
}

function OnClickEditSummary(ResourceID)
{
	document.getElementById('Action').value="adminEditResource";
	document.getElementById('SubAction').value="EditResource";
	document.getElementById('ResourceID').value=ResourceID;
	document.getElementById('PageForm').submit();
}

function OnClickSubmitSummary(ResourceID)
{
	document.getElementById('Action').value="adminSubmitResource";
	document.getElementById('SubAction').value="SubmitResourcePreview";
	document.getElementById('ResourceID').value=ResourceID;
	document.getElementById('PageForm').submit();
}

function OnClickApproveSummary(ResourceID)
{
	document.getElementById('Action').value="adminApproveResource";
	document.getElementById('SubAction').value="ApproveResourcePreview";
	document.getElementById('ResourceID').value=ResourceID;
	document.getElementById('PageForm').submit();
}


/************************************ Admin Div Scripts ***************************/
function OnMouseOverAdmin(element){document.getElementById(element).className= "menuAdminHover";}
function OnMouseOutAdmin(element){document.getElementById(element).className = "menuAdmin";}

function OnClickAdmin(Command)
{
//	alert ('Not yet implemented');
	document.getElementById('Action').value=Command;
//	document.getElementById('ResourceID').value=ResourceID;
	document.getElementById('PageForm').submit();
}




</script>
